<div class="simple">
<?php echo CHtml::activeLabelEx($model,'jobno'); ?>
<?php echo CHtml::activeTextField($model,'jobno',array('size'=>30,'maxlength'=>20)); ?>
</div>
<div class="simple">
<?php echo CHtml::activeLabelEx($model,'eta'); ?>
<?php $this->widget('zii.widgets.jui.CJuiDatePicker',
              array(
                    'model'=>$model,
                    'attribute'=>'eta',
                    'value'=>($model['eta'] != null)?(is_numeric($model['eta']))?date('d/m/Y',$model['eta']):$model['eta']:'',
                    'htmlOptions'=>array('size'=>30),
                    'options'=>array('dateFormat'=>'dd/mm/yy'),
                   )
             );
?>
</div>
<div class="simple">
<?php echo CHtml::activeLabelEx($model,'origin'); ?>
    <?php $this->widget('CAutoComplete',
          array(
                         //name of the html field that will be generated
             'model'=>$model,
             'attribute'=>'origin',
                         //replace controller/action with real ids
             'url'=>array('enquiry/origin'),
             'max'=>10, //specifies the max number of items to display

                         //specifies the number of chars that must be entered
                         //before autocomplete initiates a lookup
             'minChars'=>3,
             'delay'=>200, //number of milliseconds before lookup occurs
             'matchCase'=>false, //match case when performing a lookup?
                         //any additional html attributes that go inside of
                         //the input field can be defined here
             'htmlOptions'=>array('size'=>30),

             ));
    ?>
</div>
<div class="simple">
<?php echo CHtml::activeLabelEx($model,'freight_info'); ?>
<?php echo CHtml::activeTextField($model,'freight_info',array('size'=>30,'maxlength'=>50)); ?>
</div>
<div class="simple">
<?php echo CHtml::activeLabelEx($model,'shipping_line_id'); ?>
    <?php $this->widget('CAutoComplete',
          array(
                         //name of the html field that will be generated
             'model'=>$model,
             'attribute'=>'shipping_line_id',
                         //replace controller/action with real ids
             'url'=>array('enquiry/ContactName'),
             'max'=>10, //specifies the max number of items to display

                         //specifies the number of chars that must be entered
                         //before autocomplete initiates a lookup
             'minChars'=>3,
             'delay'=>200, //number of milliseconds before lookup occurs
             'matchCase'=>false, //match case when performing a lookup?
                         //any additional html attributes that go inside of
                         //the input field can be defined here
             'htmlOptions'=>array('size'=>30),

             ));
         CHtml::hiddenField('import[shipping_id]', $model->shipping_line_id);
    ?>
</div>
<div class="simple">
<?php echo CHtml::activeLabelEx($model,'mref'); ?>
<?php echo CHtml::activeTextField($model,'mref',array('size'=>30,'maxlength'=>50)); ?>
</div>
<div class="simple">
<?php echo CHtml::activeLabelEx($model,'href'); ?>
<?php echo CHtml::activeTextField($model,'href',array('size'=>30,'maxlength'=>50)); ?>
</div>
<div class="simple">
<?php echo CHtml::activeLabelEx($model,'desc'); ?>
<?php echo CHtml::activeTextArea($model, 'desc', array('cols'=>'32','rows'=>'3')); ?>
</div>
<?php echo CHtml::activeHiddenField($model, 'id'); ?>